package com.company.cloud.user.modules.mgr.mapper;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.company.cloud.common.auth.bean.PermRoleInfo;
import com.company.cloud.user.modules.base.entity.PermissionInfo;
import com.company.cloud.user.modules.cache.models.CustomerCountModel;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface UserCountMapper {

	@Select("select id as user_id, count(*) as customerCount "
			+ "FROM cust_user_info  "
			+ "${ew.customSqlSegment}")
	public CustomerCountModel getCustomerCount(@Param(Constants.WRAPPER) Wrapper<CustomerCountModel> wrapper);

	@Select("select id as user_id, count(*) as customerCount "
			+ "FROM cust_user_info  "
			+ "${ew.customSqlSegment}")
	public List<CustomerCountModel> getCustomerCountList(@Param(Constants.WRAPPER) Wrapper<CustomerCountModel> wrapper);

}
